home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / May 96 / Re Subviews.1 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  2.2 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Subviews
  2. Sent:        5/30/96 9:50 AM
  3. Received:    5/30/96 10:17 AM
  4. From:        Laurent Delamare, laurentd@apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >>While reading the "ODF Developer's Guide Update", I came across the 
  9. >>following paragraph in the section on "Defining a Subview"
  10. >>
  11. >>"The view hierarchy inside your frame will never be very deep.  Usually a 
  12. >>frame contains simple views, such as controls, as direct children, and it 
  13. >>may contain a content view  which itself contains other simple views.  It 
  14. >>is rare that you use more than 2 layers of views because of the limitation"
  15. >>
  16. >>What is the limitation being referred to in that last (incomplete) 
  17. >>sentence?  Does this mean that my view hierarchy _should not_ get very 
  18. >>deep?  If so, how deep is too deep?  I am currently using nested subviews 
  19. >>extensively in my part.
  20. >>
  21. >>Thanks,
  22. >>Rob Cope
  23. >>Eclipse Services
  24. >>
  25. >
  26. >There are no limit to the number of embedded views in ODF. What Laurent 
  27. >was refering to, I think, is the 'limitation' we have in ODF with 
  28. >scrollers. You can have only one scrolling region in a frame: means you 
  29. >can have only one scroller per frame. If you need to have two views 
  30. >scrolling (not synchronized) you need to have two frames. This is due to 
  31. >the fact that the ODF scroller uses the frame's internal transform, and 
  32. >there is only one internal tranform per frame.
  33. >
  34. >Laurent could give you I am sure a better answer but he is out of the 
  35. >office for the rest of the week.
  36. >
  37.  
  38. I agree that we should change the phrasing to make it clear that there is
  39. no limitation in the number of nested subviews.  The scroller limitation 
  40. is one thing but it's another issue.  
  41. At the time I wrote that I was thinking of the general case of parts with
  42. 0 or 1 scroller and a few controls. In the case of an outliner part for
  43. instance each element is a nested view, so it can go as deep as the user
  44. wants.
  45.  
  46. Thanks for pointing that out.
  47.  
  48. ______________________________________________________________________
  49. Laurent Delamare               laurentd@apple.com
  50. ODF Team                       http://www.devtools.apple.com/odf/
  51. Apple Computer, Inc.           http://www.opendoc.apple.com/
  52.